.class Lcom/netease/newsreader/activity/OfflineDownPage$1;
.super Landroid/os/Handler;
.source "OfflineDownPage.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/OfflineDownPage;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/OfflineDownPage;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/OfflineDownPage;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    .line 149
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7
    .parameter "msg"

    .prologue
    const/16 v5, 0x8

    const/4 v6, 0x0

    .line 154
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 155
    iget v4, p1, Landroid/os/Message;->what:I

    packed-switch v4, :pswitch_data_0

    .line 208
    :cond_0
    :goto_0
    return-void

    .line 157
    :pswitch_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$0(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 158
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$1(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/Button;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/Button;->setVisibility(I)V

    .line 159
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$2(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 160
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$3(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/Button;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 162
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    .line 163
    .local v0, bundle:Landroid/os/Bundle;
    if-eqz v0, :cond_0

    .line 164
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    const-string v5, "current_num"

    invoke-virtual {v0, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$4(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V

    .line 165
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    const-string v5, "current_col"

    invoke-virtual {v0, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$5(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V

    .line 166
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    const-string v5, "current_num_in_col"

    invoke-virtual {v0, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$6(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V

    .line 167
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    const-string v5, "percent"

    invoke-virtual {v0, v5}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$7(Lcom/netease/newsreader/activity/OfflineDownPage;I)V

    .line 169
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$8(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$9(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_0

    .line 170
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$10(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_0

    .line 171
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$11(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/ProgressBar;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$12(Lcom/netease/newsreader/activity/OfflineDownPage;)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 172
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$13(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "\u6b63\u5728\u4e0b\u8f7d\u79bb\u7ebf\u65b0\u95fb "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$9(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$10(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 173
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$14(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$12(Lcom/netease/newsreader/activity/OfflineDownPage;)I

    move-result v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "%"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 179
    .end local v0           #bundle:Landroid/os/Bundle;
    :pswitch_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$0(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 180
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$1(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/Button;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 181
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$2(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 182
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$3(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/Button;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/Button;->setVisibility(I)V

    .line 184
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$15(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/ImageView;

    move-result-object v4

    const v5, 0x7f0200f6

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 185
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$16(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;

    move-result-object v4

    const-string v5, "\u6210\u529f\u4e0b\u8f7d\u5bfc\u822a\u680f\u76ee\u7684\u79bb\u7ebf\u65b0\u95fb"

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 186
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$17(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;

    move-result-object v4

    const-string v5, "\u65e0\u7f51\u7edc\u4fe1\u53f7\u65f6\uff0c\u60a8\u4e5f\u53ef\u4ee5\u9605\u8bfb\u65b0\u95fb\u4e86\u3002"

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 188
    :try_start_0
    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string v4, "HH:mm"

    invoke-direct {v2, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 189
    .local v2, sDateFormat:Ljava/text/SimpleDateFormat;
    new-instance v4, Ljava/util/Date;

    invoke-direct {v4}, Ljava/util/Date;-><init>()V

    invoke-virtual {v2, v4}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v3

    .line 190
    .local v3, time:Ljava/lang/String;
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$18(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/widget/TextView;

    move-result-object v4

    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 195
    .end local v2           #sDateFormat:Ljava/text/SimpleDateFormat;
    .end local v3           #time:Ljava/lang/String;
    :goto_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$19(Lcom/netease/newsreader/activity/OfflineDownPage;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v4

    invoke-virtual {v4, v6}, Lcom/netease/newsreader/activity/MyApplication;->setIsDownOffline(Z)V

    .line 196
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$19(Lcom/netease/newsreader/activity/OfflineDownPage;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v4

    invoke-virtual {v4, v6}, Lcom/netease/newsreader/activity/MyApplication;->setIsCancleOfflineDown(Z)V

    .line 197
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$19(Lcom/netease/newsreader/activity/OfflineDownPage;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v4

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Lcom/netease/newsreader/activity/MyApplication;->setIsOfflineDownFinish(Z)V

    goto/16 :goto_0

    .line 191
    :catch_0
    move-exception v1

    .line 193
    .local v1, e:Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    .line 200
    .end local v1           #e:Ljava/lang/Exception;
    :pswitch_2
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    const-string v5, "\u5df2\u53d6\u6d88\u4e0b\u8f7d\u79bb\u7ebf\u65b0\u95fb"

    invoke-static {v4, v5, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Toast;->show()V

    .line 201
    iget-object v5, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    const-string v6, "notification"

    invoke-virtual {v4, v6}, Lcom/netease/newsreader/activity/OfflineDownPage;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/NotificationManager;

    invoke-static {v5, v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$20(Lcom/netease/newsreader/activity/OfflineDownPage;Landroid/app/NotificationManager;)V

    .line 202
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$21(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/app/NotificationManager;

    move-result-object v4

    const v5, 0x7f030044

    invoke-virtual {v4, v5}, Landroid/app/NotificationManager;->cancel(I)V

    .line 205
    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$1;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-virtual {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->finish()V

    goto/16 :goto_0

    .line 155
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
